.loading {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;

    &::before {
        content: "";
        width: 200px;
        height: 200px;
        position: absolute;
        margin-top: -100px;
        margin-left: -100px;
        // 锥形渐变
        background-image: conic-gradient(#fff 5%, #0c0, #fff 95%);
        border-radius: 50%;
        -webkit-mask-image: radial-gradient(transparent 0,
                transparent 80px,
                red 0,
                #fff 70px);
        animation: loading 1s infinite;
    }
}

@keyframes loading {
    0% {
        transform: rotate(0);
    }

    100% {
        transform: rotate(360deg);
    }
}